import { Component, OnInit, Input } from '@angular/core';
import { AppGlobalService } from '../../shared/service/app-global.service';

@Component({
  selector: 'app-customer-service',
  templateUrl: './customer-service.component.html',
  styleUrls: ['./customer-service.component.scss'],
})
export class CustomerServiceComponent implements OnInit {

  @Input() tagData: any;
  constructor(private globalService: AppGlobalService) { }

  ngOnInit() { }

  gotoCustomerServicePage() {
    const pageParams = {
      pageId: this.tagData.data.link.target,
      params: this.tagData.data.link.params,
      sessionId: localStorage.getItem('sessionId')
    };
    this.globalService.goToForward(pageParams);
  }

}
